Added support for placeholders, removed jQuery dependency