separated code in different files and added local jQuery file