adding URL validation using filters, rewritting addStyle and getStyle methods
javascript functions rewritten