got css javascript directives working properly