Added Javascript functions

Added form validation and accordion transitions for the portfolio page