Adding custom functions and JavaScript, played with styles