CSS transformation and filters using Javascript