You can easily migrate JSP code from a non-AEM app to AEM by using CRXDE Lite and creating a new component and then adding the JSP to that component. If this JSP has dependencies on other JS files, make sure that you include the JS files in a clientlibs folder.